#if !defined(_QWORKER_H_)
#define _QWORKER_H_

#include <string>
#include <boost/thread.hpp>

#include "format.h"
#include "controllers_network.h"
#include "sqlhandle.h"

class qworker
{
    public:
		qworker();

		void init_worker(controllers_network *_network, sqlhandle *_sqlhandler);

		void run();

		void stop();

    protected:
    
    	controllers_network *network_;
    	sqlhandle *sqlhandler_;

		bool exit_;
};

extern qworker g_worker;

#endif // _LOG_H_

